package com.cswangdao.service;

import com.cswangdao.domain.model.MarketCategory;
import com.cswangdao.domain.vo.CategoryL1Vo;
import com.cswangdao.domain.vo.CategoryVo;
import com.cswangdao.domain.vo.WXCatalogIndexVo;
import com.cswangdao.result.PageResult;

public interface CategoryService {
    PageResult<CategoryVo> list();

    PageResult<CategoryL1Vo> L1Info();

    MarketCategory addOne(MarketCategory category);

    boolean updateById(MarketCategory category);

    boolean deleteById(Integer id);


    WXCatalogIndexVo getCatalogIndex();

    WXCatalogIndexVo getCurrenCatalogByPid(int pid);
}
